package com.eorchis.module.trainneedscope.ui.commond;

import java.io.Serializable;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.trainingquestionnaire.domain.QuestionnaireEntity;
import com.eorchis.module.trainneedscope.domain.TrainNeedScope;
import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;
import com.eorchis.core.ui.commond.ICommonField;
import java.util.Date;


/**
 * Title: TrainNeedScopeValidCommond<br>
 * Description: 培训需求调查对象ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Max
 * @createDate 2014-08-27
 * @version $Revision$
 */
public class TrainNeedScopeValidCommond implements ICommond{
	
	private TrainNeedScope trainNeedScope;
	
	private String [] addEntityIds;//添加用户或部门id数组
	private Integer addEntityType;//添加部门或者用户
	private String searchQuestionNaireId;//问卷id
	private String searchQuestionnaireId;//也是问卷id  最好用上面那个
	private String [] searchLinkIds;//关联对象id数组
	private String searchDutyCodes;//职级code，用逗号分隔
	private String searchLinkId;
	
	public TrainNeedScopeValidCommond(){
		trainNeedScope = new TrainNeedScope();
	}
	
	public TrainNeedScopeValidCommond(TrainNeedScope trainNeedScope){
		this.trainNeedScope = trainNeedScope;
	}

	public Serializable getEntityID() {
		return trainNeedScope.getQuestionnaireSurveyObjectId();
	}

	public IBaseEntity toEntity() {
		return trainNeedScope;
	}

	/**
	 * 获取ID
	 */	
	@NotBlank
	public String getQuestionnaireSurveyObjectId() {
		return trainNeedScope.getQuestionnaireSurveyObjectId();
	}
	/**
	 * 设置ID
	 */		
	public void setQuestionnaireSurveyObjectId(String questionnaireSurveyObjectId) {
		trainNeedScope.setQuestionnaireSurveyObjectId(questionnaireSurveyObjectId);
	}
	/**
	 * 获取问卷id
	 */	
	@NotBlank
	public QuestionnaireEntity getQuestionnaire() {
		return trainNeedScope.getQuestionnaire();
	}
	public void setQuestionnaire(QuestionnaireEntity questionnaire) {
		trainNeedScope.setQuestionnaire(questionnaire);
	}
	/**
	 * 获取调查对象id
	 */	
	public String getSurveyObjectId() {
		return trainNeedScope.getSurveyObjectId();
	}
	/**
	 * 设置调查对象id
	 */		
	public void setSurveyObjectId(String surveyObjectId) {
		trainNeedScope.setSurveyObjectId(surveyObjectId);
	}
	/**
	 * 获取调查类型
	 */	
	public Integer getSurveyObjectType() {
		return trainNeedScope.getSurveyObjectType();
	}
	/**
	 * 设置调查类型
	 */		
	public void setSurveyObjectType(Integer surveyObjectType) {
		trainNeedScope.setSurveyObjectType(surveyObjectType);
	}
	/**
	 * 获取填写类型
	 */	
	public Integer getWriteType() {
		return trainNeedScope.getWriteType();
	}
	/**
	 * 设置填写类型
	 */		
	public void setWriteType(Integer writeType) {
		trainNeedScope.setWriteType(writeType);
	}
	
	public Date getCreateDate() {
		return trainNeedScope.getCreateDate();
	}

	public void setCreateDate(Date createDate) {
		trainNeedScope.setCreateDate(createDate);
	}

	public String[] getAddEntityIds() {
		return addEntityIds;
	}

	public void setAddEntityIds(String[] addEntityIds) {
		this.addEntityIds = addEntityIds;
	}

	public Integer getAddEntityType() {
		return addEntityType;
	}

	public void setAddEntityType(Integer addEntityType) {
		this.addEntityType = addEntityType;
	}

	public String getSearchQuestionNaireId() {
		return searchQuestionNaireId;
	}

	public void setSearchQuestionNaireId(String searchQuestionNaireId) {
		this.searchQuestionNaireId = searchQuestionNaireId;
	}

	public String[] getSearchLinkIds() {
		return searchLinkIds;
	}

	public void setSearchLinkIds(String[] searchLinkIds) {
		this.searchLinkIds = searchLinkIds;
	}

	public String getSearchDutyCodes() {
		return searchDutyCodes;
	}

	public void setSearchDutyCodes(String searchDutyCodes) {
		this.searchDutyCodes = searchDutyCodes;
	}

	public String getSearchLinkId() {
		return searchLinkId;
	}

	public void setSearchLinkId(String searchLinkId) {
		this.searchLinkId = searchLinkId;
	}

	public String getSearchQuestionnaireId() {
		return searchQuestionnaireId;
	}

	public void setSearchQuestionnaireId(String searchQuestionnaireId) {
		this.setSearchQuestionNaireId(searchQuestionnaireId);
		this.searchQuestionnaireId = searchQuestionnaireId;
	}
	
	
}
